<template>
  <div class="Learning-localStorage">
    <h3><code>window.localStorage</code> Events</h3>
    <div class="code-source-wrapper" v-highlight>
      <pre data-type="js">
        {{ codeFragment["localStorage-1"] }}
      </pre>
    </div>
    <h3>监听<code>window.localStorage</code></h3>
    <div class="code-source-wrapper" v-highlight>
      <pre data-type="js">
        {{ codeFragment["localStorage-2"] }}
      </pre>
    </div>
  </div>
</template>

<script setup>
import codeFragment from '@/assets/js/codeFragment';
</script>

<style scoped lang="scss">
</style>
